home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The PC-SIG Library 10
/
The PC-Sig Library - Shareware for the IBM PC and Compatibles (PC-SIG)(Tenth Edition Disks 1-2804)(1991).iso
/
PC_SIGCD
/
20
/
9
/
DISK2092.ZIP
/
RFIX0227.ZIP
/
RSB40227.MRG
< prev
next >
Wrap
Text File
|
1990-02-28
|
7KB
|
146 lines
* ------------[ BLED merge (c) Ken Goosens ]-------------
* Merge this against D:\172B\RBBSSUB4.BAS to produce RBBSSUB4.BAS
* D:\172B\RBBSSUB4.BAS: Date 2-11-1990 Size 120641 bytes
* ------------[ Created 02-28-1990 10:06:12 ]------------
* REPLACING old line(s) by new
* ------[ first line different ]------
58266 SmartHold$ = DATE$ ' DT Date ' KG021801
RETURN
* REPLACING old line(s) by new
58267 CALL AMorPM
* ------[ first line different ]------
SmartHold$ = ZTime$ ' TM Time ' KG021801
RETURN
* REPLACING old line(s) by new
58700 ' $SUBTITLE: 'RotorsDir - search thru a list of subdirs for a file'
' $PAGE
'
' NAME -- RotorsDir
'
' INPUTS -- PARAMETER MEANING
' FilName$ FILE NAME TO LOOK FOR
' SDIR.ARA ARRAY OF SUBDIRECTORIES
' MaxSearch MAX # OF SUBDIRECTORIES
' MarkingTime WHETHER TO MARK TIME
'
' OUTPUTS -- FNAME$ ADD SUBDIRECTORY TO THE
' FILE NAME IF FOUND. OTHER-
' WISE DON'T.
' ZOK TRUE IF FILE WAS Found
'
' PURPOSE -- Hunt through a list of subdirectories to determine
' if a file is in any of them. If file is found, open
' the file as file #2, add the drive/path to the file
' name, and sets ZOK to true. If file isn't found, set
' file name to the last subdirectory searched -- which
' should be the upload subdirectory.
'
' If the library menu is selected (ZMenuIndex = 6), then
' only 2 subdirectories are searched. The first being
' the work disk and the second being the selected
' library disk.
'
* ------[ first line different ]------
SUB RotorsDir (FilName$,SDirAra$(1),MaxSearch,MarkingTime,PassToMacro$) STATIC ' KG022204
ZOK = ZFalse
ZDotFlag = ZFalse
IF MarkingTime THEN _
CALL QuickTPut ("Searching for "+FilName$,0)
IF ZMenuIndex = 6 THEN _
GOTO 58705
NumSearch = 1
WasX = 0
WHILE (NOT ZOK) AND NumSearch <= MaxSearch AND _
SDirAra$(NumSearch) <> ""
IF MarkingTime THEN _
CALL MarkTime (WasX)
WasX$ = SDirAra$(NumSearch) + _
FilName$
CALL FindFile (WasX$,ZOK)
NumSearch = NumSearch + 1
WEND
IF ZOK OR NOT ZFastFileSearch THEN _ ' KG022301
GOTO 58710 ' KG022301
CALL OpenRSeq (ZFastFileList$,HighRec,WasX,18) ' KG022301
IF ZErrCode <> 0 THEN _ ' KG022301
GOTO 58710 ' KG022301
CALL TrimTrail (FilName$,".")
CALL BinSearch (FilName$,1,12,18,HighRec,RecFoundAt, RecFound$)
ZOK = (RecFoundAt > 0)
IF NOT ZOK THEN _ ' KG022301
GOTO 58710 ' KG022301
ZOK = ZFalse
CALL CheckInt (MID$(RecFound$,13,4))
IF ZTestedIntValue < 1 THEN _ ' KG022301
GOTO 58710 ' KG022301
CALL OpenRSeq (ZFastFileLocator$,HighRec,WasX,66)
IF ZErrCode <> 0 OR ZTestedIntValue > HighRec THEN _ ' KG022301
GOTO 58710 ' KG022301
FIELD 2, 66 AS LocatorRec$
GET 2, ZTestedIntValue
WasX$ = LEFT$(LocatorRec$,63)
CALL Trim (WasX$)
IF LEFT$(WasX$,2) = "M!" THEN _
ZOK = ZFalse : _ ' KG022301
ZGSRAra$(1) = PassToMacro$ : _ ' KG022204
WasX$ = RIGHT$(WasX$,LEN(WasX$)-2) : _ ' KG022204
CALL Trim (WasX$) : _ ' KG022204
ZFileLocation$ = "" : _ ' KG022301
CALL MacroExe (WasX$) : _ ' KG022204
IF ZFileLocation$ = "" THEN _ ' KG022301
ZOK = ZFalse : _ ' KG022204
GOTO 58711 _ ' KG022301
ELSE WasX$ = ZFileLocation$ ' KG022301
WasX$ = WasX$ + FilName$ ' KG022301
CALL FindFile (WasX$,ZOK) ' KG022301
GOTO 58710 ' KG022301
* REPLACING old line(s) by new
58710 FilName$ = WasX$
* INSERTING new line(s)
58711 CALL SkipLine (-MarkingTime) ' KG021802
END SUB
* REPLACING old line(s) by new
59336 ZUserIn$(WasI) = LEFT$(PartToPrint$,INSTR(PartToPrint$," ") - 1)
CALL FindFile (ZPersonalDrvPath$ + ZUserIn$(WasI),ZOK)
IF ZOK THEN _
ZUserIn$(WasI) = ZPersonalDrvPath$ + ZUserIn$(WasI) _
ELSE CALL RotorsDir (ZUserIn$(WasI),ZSubDir$(),ZSubDirCount + _
((ZUserSecLevel < ZMinSecToView) OR _
* ------[ first line different ]------
NOT ZCanDnldFromUp),ZTrue,"D") : _ ' KG022204
GOSUB 59338
RETURN
* REPLACING old line(s) by new
59400 ' $SUBTITLE: 'LogPDown -- subroutine to record private downloads'
' $PAGE
'
' NAME -- LogPDown
'
' INPUTS -- PARAMETER MEANING
'
' OUTPUTS --
'
' PURPOSE -- Puts a "!" in place of an "*" in private directory
' after downloaded
'
* ------[ first line different ]------
SUB LogPDown (PrivateDnld,DwnIndex) STATIC ' RH021501
IF NOT PrivateDnld THEN _
EXIT SUB
ZWasEN$ = ZPersonalDir$
WasBX = &H4
ZSubParm = 9
CALL FileLock
WasL = 36 + ZMaxDescLen + ZPersonalLen
CLOSE 2
IF ZShareIt THEN _
OPEN ZWasEN$ FOR RANDOM SHARED AS #2 LEN=WasL _
ELSE OPEN "R",2,ZPersonalDir$,WasL
FIELD #2,WasL AS PersonalRec$
ZWasA = VAL(MID$(ZUserIn$(0),5 * (DwnIndex - 1) + 1,5)) ' RH021501
GET #2,ZWasA
MID$(PersonalRec$,WasL-2,1) = "!"
PUT #2,ZWasA
CALL UnLockAppend
END SUB